<include file="Common:__head__"/>
<div class="permissions-tabs">
    <a class="role" href="{:U('system/sms_template')}">SMS信息模板</a>
    <a class="keeper tabs-bg" href="{:U('Order/msg_conf')}">模板信息</a>
</div>
<div class="permissions-content">
    <div class="permissions-le">
        <div class="message-set">
            <span class="hints">操作提示</span>
            <span class="hints-dec">此为微信模板消息设置，请按照提示正确配置</span>
        </div>
        <div class="permissions-table">
            <table border="0" width="100%" class="msg-table">
                <thead>
                <tr>
                    <td width="10%">模板名称</td>
                    <td width="20%">模板ID</td>
                    <td width="10%">模板标题</td>
                    <td width="20%">开头内容</td>
                    <td width="30%">结尾内容</td>
                    <td width="10%">操作</td>
                </tr>
                </thead>
                <tbody class="msg-set">
                    <tr>
                        <td>
                            <div style="text-align: left;">上级推送通知</div>
                        </td>
                        <td>
                            <div style="text-align: left;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;">{$upgo['model_id']}</div>
                        </td>
                        <td>
                            <div style="text-align: left;">{$upgo['model_title']}</div>
                        </td>
                        <td>
                            <div style="text-align: left;">{$upgo['content_begin']}</div>
                        </td>
                        <td>
                            <div style="text-align: left;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;">{$upgo['content_end']}</div>
                        </td>
                        <td>
                            <div style="text-align: center;">
                                <a  href="{:U('Order/edit_config',array('id'=>$upgo['id'],'model_name'=>'上级推送通知'))}" class="btn btn-blue">
                                配置</a>
                            </div>
                        </td>
                    <tr>
                        <td>
                            <div style="text-align: left;">充值消息通知</div>
                        </td>
                        <td>
                            <div style="text-align: left;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;">{$recharge['model_id']}</div>
                        </td>
                        <td>
                            <div style="text-align: left;">{$recharge['model_title']}</div>
                        </td>
                        <td>
                            <div style="text-align: left;">{$recharge['content_begin']}</div>
                        </td>
                        <td>
                            <div style="text-align: left;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;">{$recharge['content_end']}</div>
                        </td>
                        <td>
                            <div style="text-align: center;">
                                <a  href="{:U('Order/edit_config',array('id'=>$recharge['id'],'model_name'=>'充值消息通知'))}" class="btn btn-blue">
                                配置</a>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="permissions-ri">
        <a href="" class="permissions-help">帮助和服务</a>
    </div>
</div>
</div>
<include file="common:__foot__"/>

<script>
    $(function () {
        $(document).ready(function(){
            // 点击刷新数据
            $('.fa-refresh').click(function(){
                location.href = location.href;
            });
        });

        function delfun(obj) {
            // 删除按钮
            layer.confirm('确认删除？', {
                btn: ['确定', '取消'] //按钮
            }, function () {
                $.ajax({
                    type: 'post',
                    url: $(obj).attr('data-url'),
                    data:{ roleid: $(obj).attr('data-id')},
                    dataType: 'json',
                    success: function (data) {
                        layer.closeAll();
                        if (data) {
                            $(obj).parent().parent().parent().remove();
                        } else {
                            layer.alert('删除失败', {icon: 2});  //alert('删除失败');
                        }
                    }
                })
            }, function () {
                layer.closeAll();
            });
        }
    })

</script>
</body>
</html>